libxc: add xc_domain_add_to_physmap_batch to wrap XENMEM_add_to_physmap_batch
authorZhongze Liu <blackskygg@gmail.com>
Thu, 22 Jun 2017 16:35:28 +0000 (00:35 +0800)
committerWei Liu <wei.liu2@citrix.com>
Thu, 29 Jun 2017 10:23:15 +0000 (11:23 +0100)
commit20e725e9364cff4a29945f66986ecd88cca8743d
tree229fd7b3102a75f3f2550643d06a69f6a7926be3
parentbda2696f29ad5af6dea0d3edad180a58dde6984a
libxc: add xc_domain_add_to_physmap_batch to wrap XENMEM_add_to_physmap_batch

This is a preparation for the proposal "allow setting up shared memory areas
between VMs from xl config file". See:
V2: https://lists.xen.org/archives/html/xen-devel/2017-06/msg02256.html
V1: https://lists.xen.org/archives/html/xen-devel/2017-05/msg01288.html

The plan is to use XENMEM_add_to_physmap_batch in xl to map foregin pages from
one DomU to another so that the page could be shared. But currently there is no
wrapper for XENMEM_add_to_physmap_batch in libxc, so we just add a wrapper for
it.

Signed-off-by: Zhongze Liu <blackskygg@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_domain.c